package cn.legend.travel.admin.authorize.service;

import cn.legend.travel.admin.authorize.pojo.param.UserAddNewParam;
import cn.legend.travel.admin.authorize.pojo.param.UserLoginParam;
import cn.legend.travel.admin.authorize.pojo.param.UserUpdateParam;
import cn.legend.travel.admin.authorize.pojo.vo.UserLoginResultVO;
import cn.legend.travel.admin.authorize.pojo.vo.UserStandardVO;
import cn.legend.travel.common.pojo.authentication.CurrentPrincipal;
import cn.legend.travel.common.pojo.vo.PageData;

public interface IUserService {


    PageData<UserStandardVO> getUserList(Integer pageNum);

    void addNew(UserAddNewParam param);

    void update(UserUpdateParam param);

    void deleteById(Long id);

    UserLoginResultVO login(UserLoginParam param);

    void logout(CurrentPrincipal principal);

    void updatePassword(String newPwd, Long id);
}
